package com.club.common.constant;

/**
 * 通用常量信息
 *
 * @author chaochao(vx : zhangfec)
 */
public class Constant {

    public final static String CAPTCHA_KEY = "captcha";

    public final static String AUTHORITY_KEY = "authority";

    public final static String DEFAULT_PASSWORD = "123456";

    /**
     * 通用是否 1-是  0-否
     */
    public final static class YesOrNo {
        /**
         * 是
         */
        public final static String YES = "1";
        /**
         * 否
         */
        public final static String NO = "0";
    }

    /**
     * 禁用状态
     */
    public final static class CloseStatus {
        /**
         * 正常
         */
        public final static String NORMAL = "0";

        /**
         * 禁用
         */
        public final static String CLOSE = "1";
    }

    /**
     * 角色常量
     */
    public final static class RoleConstant {
        /**
         * 普通角色
         */
        public final static Long GENERAL = 2L;
    }

    /**
     * 社团的状态
     */
    public final static class ClubStatus {
        /**
         * 审核中
         */
        public final static String AUDITING = "0";

        /**
         * 审核成功
         */
        public final static String AUDIT_SUCCESS = "1";

        /**
         * 审核失败
         */
        public final static String AUDIT_FAILURE = "2";
    }

    public final static class ActStatus {
        /**
         * 审核中
         */
        public final static String AUDITING = "0";

        /**
         * 审核成功
         */
        public final static String AUDIT_SUCCESS = "1";

        /**
         * 审核失败
         */
        public final static String AUDIT_FAILURE = "2";
    }

    /**
     * 日期转换模板
     */
    public final static class TimePlate {
        /**
         * 格式: yyyy-MM-dd HH:mm:ss
         */
        public final static String STAND_TIME = "yyyy-MM-dd HH:mm:ss";
    }
}
